<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href='__PUBLIC__/Js/admin_nav.js' />
<load href="__PUBLIC__/Js/jquery-1.7.2.min.js" />
<script>
	$(document).ready(function(){
		pid = $(":input[name='parent']").val();
		$("select option[value=" + pid + "]").attr("selected",true);
	});
</script>
</head>
<body id="main">

<div class="map">
	内容管理 &gt;&gt; 分类管理 &gt;&gt; <strong id="title">修改分类</strong>
</div>

<ol>
	<li><a href="__URL__/index" class="selected">分类列表</a></li>
	<li><a href="__URL__/add">新增分类</a></li>
	<li><a href="__URL__/edit/id/{$cat.id}">修改分类</a></li>
</ol>
<form method="post" name="add" action="__URL__/update" >
	<input type="hidden" value="{$cat.pid}" name="parent" />
	<input type="hidden" value="{$cat.id}" name="id" />
	<table cellspacing="0" class="left" id="cat">
		<tr><td>分类名称：<input type="text" name="category_name" value="{$cat.category_name}" class="text" /> (* 分类名称不得小于两位，不得大于20位！)</td></tr>
		<tr><td>上级分类：<select name="pid">
							<!-- <option value="" style="padding:0;">请选择父级分类</option> -->
							<option value="0">顶级分类</option>
							<volist name="parent" id="vo">
							<option value="{$vo.id}">{$vo.fname}</option>
							</volist>
						 </select> <span class="red">[必选]</span>
		</td></tr>
		<tr><td>分类描述<textarea name="category_info">{$cat.category_info}</textarea> (* 描述不得大于200位！)</td></tr>
		<tr><td><input type="submit" name="send" value="修改分类" onclick="return checkForm();" class="submit level" /> [ <a href="{$prev_url}">返回列表</a> ]</td></tr>
	</table>
</form>
</body>
</html>